package net.shopxx.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
/**
 * 乘客
 * @author Administrator
 *
 */
@Entity
public class Passenger extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9116289564742333271L;
	private String psgID;
	private String name;
	private String psgType;
	private String cardType;
	private String cardNo;
	private String birthDay;
	private String carrierPsgID;
	private String country;
	private String mobilePhone;
	private String insueSum;
	private String insueFee;

	private AirOrder airOrder;// 订单

	public String getPsgID() {
		return psgID;
	}

	public void setPsgID(String psgID) {
		this.psgID = psgID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPsgType() {
		return psgType;
	}

	public void setPsgType(String psgType) {
		this.psgType = psgType;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getBirthDay() {
		return birthDay;
	}

	public void setBirthDay(String birthDay) {
		this.birthDay = birthDay;
	}

	public String getCarrierPsgID() {
		return carrierPsgID;
	}

	public void setCarrierPsgID(String carrierPsgID) {
		this.carrierPsgID = carrierPsgID;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getInsueSum() {
		return insueSum;
	}

	public void setInsueSum(String insueSum) {
		this.insueSum = insueSum;
	}

	public String getInsueFee() {
		return insueFee;
	}

	public void setInsueFee(String insueFee) {
		this.insueFee = insueFee;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = false)
	public AirOrder getAirOrder() {
		return airOrder;
	}

	public void setAirOrder(AirOrder airOrder) {
		this.airOrder = airOrder;
	}
	
	

}


